<html>
	<head>
		<title>narisa.com mashup</title>
		<style type="text/css">
			body, table { font-size: small; }

			.service {
				background-color: #ccffff;
				padding: .5em .1em .5em 1em;
				margin-bottom: .5em;
			}

			table.api {
				padding-left: 1em;
				margin-top: .5em;
				margin-bottom: .5em;
			}

			table.api th {
				text-align: left;
			}
		</style>
	</head>
	<body>
		<h1>narisa.com mashup</h1>
		<h2>services index</h2>
		<div class="service">
			<div class="description">List 20 registered tags</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /tags/all</td></tr>
			</table>
			<form method="GET" action="/tags/all">
				/tags/all
				<input type="submit" />
			</form>
		</div>
		<div class="service">
			<div class="description">List 100 registered tags, sorted by hits (descending)</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /tags/cloud</td></tr>
			</table>
			<form method="GET" action="/tags/cloud">
				/tags/cloud
				<input type="submit" />
			</form>
		</div>
		<div class="service">
			<div class="description">List 100 topics associated by the specified tag, sorted by tag hits (descending)</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /topicStats/byTag</td></tr>
			</table>
			<form method="GET" action="/topicStats/byTag">
				/topicStats/byTag?tagName=<input type="text" name="tagName" size="8" />
				<input type="submit" />
			</form>
		</div>
		<div class="service">
			<div class="description">Tag a topic with the specified word</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /tagHistories/add</td></tr>
				<tr><th>param:tagName</th><td>a word for tagging</td></tr>
				<tr><th>param:vcKey</th><td>an authenticated key with writing permission</td></tr>
				<tr><th>param:topicId</th><td>an ID of topic to be tagged</td></tr>
				<tr><th>param:color</th><td>a color for displaying</td></tr>
			</table>
			<form method="GET" action="/tagHistories/add">
				/tagHistories/add?tagName=<input type="text" name="tagName" size="8" />
				vcKey=<input type="text" name="vcKey" size="10" />
				topicId=<input type="text" name="topicId" size="10" />
				color=<input type="text" name="color" size="10" />
				<input type="submit" />
			</form>
		</div>
		<div class="service">
			<div class="description">Remove user's tagged string from the specified topic</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /tagHistories/del</td></tr>
				<tr><th>param:tagName</th><td>a word for tagging</td></tr>
				<tr><th>param:vcKey</th><td>an authenticated key with writing permission</td></tr>
				<tr><th>param:topicId</th><td>an ID of topic to be untagged</td></tr>
			</table>
			<form method="GET" action="/tagHistories/del">
				/tagHistories/del?tagName=<input type="text" name="tagName" size="8" />
				vcKey=<input type="text" name="vcKey" size="10" />
				topicId=<input type="text" name="topicId" size="10" />
				<input type="submit" />
			</form>
		</div>
		<div class="service">
			<div class="description">
				List top 10 highest tags associated with the specified topics.
				If <b>vcKey</b> is available, it will return with additional info
				about user submission status for each tag.
			</div>
			<table class="api">
				<tr><th>URL</th><td>GET: /topicStats/byTopics</td></tr>
				<tr><th>param:topics</th><td>a comma separated list of topic ID</td></tr>
				<tr><th>param:vcKey</th><td>Optional, an authenticated key</td></tr>
			</table>
			<form method="GET" action="/topicStats/byTopics">
				/topicStats/byTopics?topics=<input type="text" name="topics" />
				vcKey=<input type="text" name="vcKey" size="10" />
				<input type="submit" />
			</form>
		</div>
	</body>
</html>

